package ctp.ctpgraph;

public class Vertex {
	String name;
	boolean isDefault;
	Double expectedCostSubtree;
	Double probBlockedSubtree;
	Double dSubtree;

	Double expectedCostSubtreeParent;
	Double probBlockedSubtreeParent;
	Double dSubtreeParent;
	
	public Vertex(String name) {
		this(name, false);
	}
	
	public Vertex(String name, boolean isDefault) {
		super();
		this.name = name;
		this.isDefault = isDefault;
	}

	public boolean isDefault() {
		return this.isDefault;
	}
	
	public boolean isGoal(CTPGraph ctpGraph) {
		return this.equals(ctpGraph.getGoal());
	}
	
	@Override
	public String toString() {
		return this.name;
	}

	public Double getExpectedCostSubtree() {
		return expectedCostSubtree;
	}

	public void setExpectedCostSubtree(Double expectedCostSubtree) {
		this.expectedCostSubtree = expectedCostSubtree;
	}

	public Double getProbBlockedSubtree() {
		return probBlockedSubtree;
	}

	public void setProbBlockedSubtree(Double probBlockedSubtree) {
		this.probBlockedSubtree = probBlockedSubtree;
	}

	public Double getdSubtree() {
		return dSubtree;
	}

	public void setdSubtree(Double dSubtree) {
		this.dSubtree = dSubtree;
	}

	public Double getExpectedCostSubtreeParent() {
		return expectedCostSubtreeParent;
	}

	public void setExpectedCostSubtreeParent(Double expectedCostSubtreeParent) {
		this.expectedCostSubtreeParent = expectedCostSubtreeParent;
	}

	public Double getProbBlockedSubtreeParent() {
		return probBlockedSubtreeParent;
	}

	public void setProbBlockedSubtreeParent(Double probBlockedSubtreeParent) {
		this.probBlockedSubtreeParent = probBlockedSubtreeParent;
	}

	public Double getdSubtreeParent() {
		return dSubtreeParent;
	}

	public void setdSubtreeParent(Double dSubtreeParent) {
		this.dSubtreeParent = dSubtreeParent;
	}
	

	
}
